#match{
	width: $largeContentWidth;
	margin: $contentMargin;
}

#matchShare{
	margin-top: 1.8rem;
	width: 54rem;
}
#matchShare p{
	margin: 1rem auto;
}
#matchShare #shareUrl{
	overflow: hidden;
	text-overflow: ellipsis;
}

#fieldScheme{
	background-image: url($baseDir + "images/field.jpg");
	background-size: cover;
	width: 46rem;
	height: 52rem;
	position: relative;
}

#playersMissing > div{
	min-height: 5.3rem;
}

.team{
	font-weight: bold;
	text-align: center;
	font-size: 1.8rem;
	background-color: $white;
	color: $black;
	border: $border;
	margin-bottom: 0.8rem;
	min-height: 5.3rem;
	line-height: 5.3rem;
}

.team.colored{
	border: 0;
}

.player-item{
	margin-bottom: 0.8rem;
	min-height: 6.3rem;
	border: $border;
	padding: 1rem 0.8rem;
	
	.img-container {
		padding-left: 0px;
	}
	
	>div:last-child{
		line-height: 4rem;
	}
	
	&.empty{
		border-style: dashed;
		cursor: pointer;
	}
}
.player-badge{
	border: $border;
	border-width: 2px;
	position: absolute;
	
	&.empty{
		border-style: dashed;
		border-radius: 50%;
		width: 4rem;
		height: 4rem;
		
		opacity: 0.5;
	}
}

#fieldData{
	margin: 0 0.1rem;
	padding: 1.5rem 2.5rem;
}

#fbCommentBox{
	padding: 2.5rem;
}

#addPlayerModal, #invitePlayersModal{
	text-align: center;
}

#invitePlayersModal #invitePlayersButton, #editMatchModal #updateMatchButton{
	margin-right: 0;
}

#map_canvas { 
	height: 26rem; 
}

#playersMissing{
	overflow: hidden;
	
	>div{
		line-height: 4;
		padding: 0;
		height: 100%;
	}
	
	.bar{
		background-color: $lightGray;
		text-align: center;
		
		.table{
			display: table;
			width: 100%;
			height: 5.6rem;
			margin-bottom: 0;
			line-height: 1;
		}
		
		.table-cell{
			display: table-cell;
			vertical-align: middle;
			margin: 0 auto;
		}
		
		.back-bar{
			color: white;
			width: 22rem;
			height: 3rem;
			background-color: #999999;
			display: inline-block;
			line-height: 231%;
			border-bottom-left-radius: 1.5rem;
			border-top-left-radius: 1.5rem;
			border-bottom-right-radius: 1.5rem;
			border-top-right-radius: 1.5rem;
			overflow: hidden;
			position: relative;
			
			.progress-bar{
				background-color: #FFBF00;
				width: 0;
			}
			.progress-bar-after{
				width: 0;
				height: 0;
				border-top: 8rem solid #FFBF00;
				border-right: 3rem solid transparent;
				position: absolute;
			}
			.text{
				width: 100%;
			}
			>div{
				position: absolute;
			}
		}
	}
	
	.shirt{
		background-color: #000;
		background-image: url('../images/shirt.png');
		background-size: cover;
		background-position: center;
	}
	.shirt-options{
		position: absolute;
		width: 22.8rem;
		height: 16.8rem;
		top: 5.8rem;
		z-index: 99;
		cursor: pointer;
		
		&.left{
			left: 3rem;
		}
		&.right{
			right: 0rem;
		}
		
		.shirt-option {
			background-image: url('../images/shirt.png');
			background-size: cover;
			background-position: center;
			width: 7.6rem;
			height: 5.6rem;
		}	
	}
}

#matchShare{
	.shareLink{
		cursor: pointer;
	}
	#shareUrl input{
		margin: 1rem auto;
		width: 100%;
		border: none;
		color: #999999;
	}
}

/* Edit Match Modal */
#editMatchModal { 
	.modal-dialog, .modal-content{
		width: 94rem; 
		height: 34rem;
		text-align: center;
	}

	.modal-content{
		width: 91rem; 
	}

	select{
		width: 25rem;
		margin: 0 auto;
	}

	#timeSelectors{
		overflow: hidden;
		width: 25rem;
		margin: 0 auto;
	}
	#time input:first-child{
		width: 14rem;
		margin: 0 auto;
		float: left;
	}
	#time input:last-child{
		width: 10rem;
		margin: 0 auto;
		float: right;
	}

	p{
		margin-top: 2.4rem;
	}
	
	.modal-body .row:last-child{
		margin: 0px;
		padding-top: 0.7rem;
	}
}
/* End Edit Match Modal */

/* Invite Players Modal */
#invitePlayersModal{ 
	.friends-list{
		height: 36rem;
		overflow: auto;
		background-color: $lightGray;
		
		.group, .friend{
			background-color: white;
			border: $border;
			display: table;
			width: 100%;
			padding: 0 1.5rem;
			cursor: pointer;
			margin-bottom: 1.5rem;
			
			div {
				display: table-cell;
				margin: 0 auto;
				vertical-align: middle;
			}
			
			.img-container img {
				@include border-radius(50%);
				overflow: hidden;
			}
		}
		
		.group {
			height: 8rem;
		}
		.friend {
			height: 6rem;
		}
		
		.group.selected, .friend.selected{
			border: $border-selected;
			background-color: $selectedBackColor;
		}
	}
}

/* End Invite Players Modal */
